projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b34790
)
Revert "Remove XEmacs-only code from snake.el"
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 15 Oct 2019 09:06:14 +0000
(11:06 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 15 Oct 2019 09:07:04 +0000
(11:07 +0200)
This reverts commit
7174a2b59f4cb883beb70bb3d182d59ab425e2f1
.
This should be ported to Emacs instead.
lisp/play/snake.el
patch
|
blob
|
history
diff --git
a/lisp/play/snake.el
b/lisp/play/snake.el
index 2769a621a468808af24acd1914a8adacaf27a9cb..d0f945790625879bf72f22934a1ff14bc8524cae 100644
(file)
--- a/
lisp/play/snake.el
+++ b/
lisp/play/snake.el
@@
-368,6
+368,17
@@
Argument SNAKE-BUFFER is the name of the buffer."
(use-local-map snake-null-map)
+ (unless (featurep 'emacs)
+ (setq mode-popup-menu
+ '("Snake Commands"
+ ["Start new game" snake-start-game]
+ ["End game" snake-end-game
+ (snake-active-p)]
+ ["Pause" snake-pause-game
+ (and (snake-active-p) (not snake-paused))]
+ ["Resume" snake-pause-game
+ (and (snake-active-p) snake-paused)])))
+
(setq gamegrid-use-glyphs snake-use-glyphs-flag)
(setq gamegrid-use-color snake-use-color-flag)